define(['bootstrap'],function(bootstrap){
    
//    var navbarHeight = $('#id-navbar').height();
	var winWidth, winHeight;
	var resize = function() {

		winWidth = $(window).width();
		winHeight = $(window).height();

		if (winWidth < 768) {
			$('html').css('overflow', 'auto');
			$('#main-left').css('overflow', 'hidden');
			/* $('#main-left').css('position', 'relative'); */
			/* $('#main-left').width('auto'); */
			$('#main-left').height('auto');

			$('#main-center').css('overflow', 'hidden');
			/* $('#main-center').css('position', 'relative'); */
			/* $('#main-center').width('auto'); */
			$('#main-center').height('auto');
		} else {
			$('html').css('overflow', 'hidden');
			/* $('#main-left').css('border', '1px solid'); */
			$('#main-left').css('background', 'ghostwhite');
			$('#main-left').css('overflow', 'auto');
			/* $('#main-left').css('position', 'fixed'); */
			/* $('#main-left').width($('#col-left').width()); */
			$('#main-left').height(winHeight - $('#row-navbar').height());

			$('#main-center').css('overflow', 'auto');//不用iframe时使用
			/* $('#main-center').css('position', 'fixed'); */
			/* $('#main-center').width($('#col-center').width()); */
			$('#main-center').height(winHeight - 50);
		}
	};
	return{
		resize:resize
	}


	});
